class Student{
    public name :string =''
    public age : number = 0
    constructor(_name: string , _age: number){
        this.name = _name 
        this.age = _age
    }

    public say(something:string):void{
        console.log(`${this.name}说了句：${something}`);
        
    }
}


let s01 = new Student('hhhhh', 101);
s01.say('wtf')
console.log(s01);

